package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDetailMapper {
    void addToOrderDetail(OrderDetail orderDetail);

    List<OrderDetail> get(Long id);

    List<GoodsSalesDTO> top(
            @Param("begin") LocalDate begin,
            @Param("end") LocalDate end
    );
}